home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
-
- set -e
-
- case "$1" in
- configure)
- if dpkg --compare-versions "$2" lt "1.0.10-1ubuntu6"; then
- rm -f /etc/alsa/modprobe-post-install.d/alsa-utils
- rmdir /etc/alsa/modprobe-post-install.d 2>/dev/null || true
- rmdir /etc/alsa 2>/dev/null || true
-
- rm -f /etc/udev/alsa-utils.rules
-
- rm -f /etc/rcS.d/S50alsa-utils
- rm -f /etc/udev/rules.d/z60_alsa-utils.rules
- fi
- ;;
- abort-upgrade|abort-remove|abort-deconfigure)
- # Nothing to do because we didn't take any action in the prerm
- ;;
- *)
- echo "postinst called with unknown argument \`$1'" >&2
- exit 1
- ;;
- esac
-
- # Automatically added by dh_installinit
- if [ -x "/etc/init.d/alsa-utils" ]; then
- update-rc.d alsa-utils stop 50 0 6 . >/dev/null || exit $?
- fi
- # End automatically added section
- # Automatically added by dh_installmenu
- if [ "$1" = "configure" ] && [ -x "`which update-menus 2>/dev/null`" ]; then
- update-menus
- fi
- # End automatically added section
-
-
-